<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:76:"D:\myphp\PHPTutorial\WWW\fresher\conf/../template/admin\goods_goodslist.html";i:1534587320;s:74:"D:\myphp\PHPTutorial\WWW\fresher\conf/../template/admin\common_header.html";i:1533799955;s:74:"D:\myphp\PHPTutorial\WWW\fresher\conf/../template/admin\common_footer.html";i:1534140541;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="__HLIB__html5shiv.js"></script>
<script type="text/javascript" src="__HLIB__respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__HLIB__Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__HSTATIC__h-ui.admin/css/style.css" />

<!--[if IE 6]>
<script type="text/javascript" src="__HLIB__DD_belatedPNG_0.0.8a-min.js" ></script>

<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<style>
    #edui1_bottombar{
        display: none;
    }
</style>
    <title>管理员列表</title>
    <link href="__AJS__layui/css/layui.css"rel="stylesheet">
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 栏目管理 <span class="c-gray en">&gt;</span> 栏目管理列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
                <a href="javascript:;" onclick="layer_show('发布文章','<?php echo url('goodsadd'); ?>','','')" class="btn btn-danger radius">
                     <i class="Hui-iconfont">&#xe604;</i> 添加商品
                </a>
        <!--<a href="?del=1" class="btn btn-warning radius"><i class="Hui-iconfont">&#xe6e2;</i>  回收站</a>-->
        </span>
        <div style="float: right">
            <input type="text" class="input-text" style="width:250px" placeholder="输入商品名" id="keywords" value="<?php echo \think\Request::instance()->get('keyword'); ?>">
            <button type="button" class="btn btn-success" onclick="reload($('#keywords').val())"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
        </div>
        <table class="table table-border table-bordered table-bg">
            <thead>
            <tr>
                <th scope="col" colspan="10"></th>
            </tr>
            <tr class="text-c">
                <th width="25"><input type="checkbox" name="" value=""></th>
                <th width="40">商品ID</th>
                <th width="90">商品名称</th>
                <th width="90">商品价格</th>
                <th width="90">商品库存</th>
                <th width="90">商品销量</th>
                <th width="90">商品图片</th>
                <th width="130">录入时间</th>
                <th width="80">商品状态</th>
                <th width="100">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <tr class="text-c">
                <td><input type="checkbox" value="<?php echo $v['id']; ?>" name="" class="item"></td>
                <td><?php echo $v['id']; ?></td>
                <td><?php echo $v['goods_name']; ?></td>
                <td><?php echo $v['goods_price']; ?></td>
                <td><?php echo $v['goods_num']; ?></td>
                <td><?php echo $v['sale_num']; ?></td>
                <td style="height: 50px"><img src="__UPLOADS__<?php echo $v['goods_image']; ?>" alt="" width="50" height="50"></td>
                <td><?php echo date("Y-m-d H:i:s",$v['goods_addtime']); ?></td>
                <td><?php if($v['goods_state'] == 1): ?>未审核<?php else: ?>已审核<?php endif; ?></td>
                <td class="td-manage">
                    <a title="编辑" href="javascript:;" onclick="layer_show('管理员编辑','<?php echo url('showEdit',array('id'=>$v['id'])); ?>','','')" class="ml-5" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6df;</i>
                    </a>
                    <a title="查看" href="javascript:;" onclick="layer_show('商品详情','<?php echo url('goods/details',array('id'=>$v['id'])); ?>','','')" class="ml-5" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe695;</i>
                    </a>
                    <a title="删除" href="javascript:;" onclick="delectOne('<?php echo url('delgood',array('id'=>$v['id'])); ?>',this)" class="ml-5" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6e2;</i>
                    </a>
                </td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
        <div class="page">
            <?php echo $page; ?>
        </div>
    </div>
    <!--_footer 作为公共模版分离出去-->
    <script type="text/javascript" src="__HLIB__jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__HLIB__layer/2.4/layer.js"></script>
<script type="text/javascript" src="__HSTATIC__h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__HSTATIC__h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="__HLIB__laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="__HLIB__Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__HLIB__layer/2.4/layer.js"></script>
<script type="text/javascript" src="__HSTATIC__h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="__AJS__common.js"></script>
<script type="text/javascript" src="__HLIB__ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="__HLIB__ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="__HLIB__ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="__HLIB__My97DatePicker/4.8/WdatePicker.js"></script>
    <!--/_footer 作为公共模版分离出去-->
</div>
</body>
<script src="__AJS__layui/layui.js"></script>
<script>
    function reload(obj) {
        goUrl('?keyword=' + obj);
    }
    function downgoods() {
       var url = "<?php echo url('goods/downdata'); ?>";
        $.ajax({
            url: url,
            success: function (data) {
                if (data.status>0){
                    layer.msg('导出成功',{icon:6,time:2000},function () {
                        window.location.reload();
                    });
                }
            },
            error: function () {
                layer.msg('网络错误，请稍后重试',{icon:2});
            }
        });
    }


</script>
</html>